export const inElectron = window.navigator.userAgent.includes('electron')

// 获取升级json
export const getUpdataJson = async () => {
    const res = await fetch("/deviceUpdata.json");
    const data = await res.json();
    return data || []
}